import { createRouter, createWebHistory } from 'vue-router'
import indexView from '../views/home/index.vue'
import shouyeView from '../views/home/shouye.vue'
import fenleiView from '../views/home/fenlei.vue'
import gouwucheView from '../views/home/gouwuche.vue'
import wodeView from '../views/home/wode.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/index',component: indexView,children:
      [
        {path: 'shouye',component: shouyeView,} ,
        {path: 'fenlei',component: fenleiView,} ,
        {path: 'gouwuche',component: gouwucheView,} ,
        {path: 'wode',component: wodeView,} 
      ]
    },

  ],
})

export default router
